package com.salton123.revenue

/**
 * Time:2022/2/25 4:13 下午
 * Author:
 * Description:
 */
class Timer {
    var startTime = System.currentTimeMillis()
    val interval = 30 * 60 * 1000

    fun countDown(): Boolean {
        if (System.currentTimeMillis() - startTime > interval) {
            startTime = System.currentTimeMillis()
            return true
        } else {
            return false
        }
    }
}